<template>
    <div id="app">
        <div class="content">
            <div class="head">
                <h3>
                    最新专题
                </h3>
                <a href="#">查看全部<i></i></a>
            </div>
            <ul>
                <li v-for="A in specialList">
                    <div class="img">
                    </div>
                        <img :src="A.cover" >   
                    <div class="imgb">
                        <p class="title">
                            <span>{{A.title}}</span>
                            <span>{{A.summary}}</span>
                        </p>
                    </div>
                    <div class="jiage">￥{{A.lowestPrice}}</div>
                    <div class="bottom">
                        <span>♥ {{A.collectNum}}</span>
                        <span>👀 {{A.viewNum}}</span>
                        <span>ℹ {{A.replyNum}}</span>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
export default {
    name: 'VueProject01Homespecial',
    props:['specialList'],
    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style scoped lang="scss">
#app{
    width: 100%;
    height: 495px;
    background: #f5f5f5;
}
.content{
    width: 1240px;
    height: 495px;
    margin: 0 auto;
}
.head{
    width: 100%;
    height: 115px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    h3{
        // flex: 1;
        font-size: 32px;
        font-weight: 400;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
        small{
            font-size: 16px;
            color: #999;
            margin-left: 20px;
        }
    }
    a{
        font-size: 16px;
        vertical-align: middle;
        margin-right: 4px;
        color: #999;
        text-decoration: none;
        i{
            display: inline-block;
            width: 14px;
            height: 14px;
            font-size: 14px;
            vertical-align: middle;
            position: relative;
            top: 2px;
            color: #ccc;
            margin-bottom: 6px;
            &::before{
                content: "\e612"
            }
        }
    }
}
ul{
    width: 1240px;
    height: 380px;
    display: flex;
    justify-content: space-between;
    li{
        width: 404px;
        height: 360px;
        position: relative;
        background: #fff;
        transition: all linear .3s;
        &:hover{
            box-shadow: 0 0 20px rgb(146, 146, 146);
            // background: #000;
            // margin-bottom: 10px;
            transform:translate(0,-8px)
        }
        .img{
            width: 404px;
            height: 288px;
            background-image: linear-gradient(0deg,rgba(0,0,0,.8),transparent 50%);
            position: absolute;
            top: 0;
            left: 0;
        }
            img{
                width: 404px;
                height: 288px;
            }
        .imgb{
            width:100%;
            height: 72px;
            position: absolute;
            bottom: 72px;
            .title{
                display: flex;
                flex-direction: column;
                font-size: 20px;
                span{
                    width: 70%;
                    padding-left: 16px;
                    overflow: hidden; /*文本超出隐藏*/
                    text-overflow: ellipsis; /*文本超出显示省略号*/
                    white-space: nowrap; /*超出的空白区域不换行*/
                    &:nth-of-type(1){
                        color: #fff;
                    }
                    &:nth-of-type(2){
                        color: #CCC;
                        text-align: left;
                    }
                }
            }
        }
        .jiage{
            position: absolute;
            bottom: 96px;
            right: 16px;
            line-height: 1;
            padding: 4px 8px 4px 7px;
            color: #cf4444;
            font-size: 17px;
            background-color: #fff;
            border-radius: 2px;
        }
        .bottom{
            height: 72px;
            line-height: 72px;
            padding: 0 20px;
            font-size: 16px;
            display: flex;
            justify-content: space-between;
            span{
                width: 64px;
                &:nth-of-type(2){
                    margin-right:130px;
                }
            }
        }
    }
}
</style>